package org.gc.common.vo.freight;

import java.lang.reflect.InvocationTargetException;

import org.apache.commons.beanutils.BeanUtils;
import org.gc.common.entity.freight.Freight;
import org.gc.common.vo.base.BaseUserVO;
import org.gc.enums.PackingType;
import org.gc.webapp.util.BizUtil;


public class FreightVO extends BaseUserVO{
    private String name;
    
    private String description;
    
    private Double length;
    
    private Double width;
    
    private Double height;
    
    private Double weight;
    

    private PackingType packingType;
    
    /**
     * 价值
     */
    private Double value;
    
    public FreightVO(Freight freight) {
        try {
            BeanUtils.copyProperties(this, freight);
        } catch (IllegalAccessException e) {
           
        } catch (InvocationTargetException e) {
            
        }
    }
    public FreightVO() {
    	
    }    
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Double getLength() {
		return length;
	}

	public void setLength(Double length) {
		this.length = length;
	}

	public Double getWidth() {
		return width;
	}

	public void setWidth(Double width) {
		this.width = width;
	}

	public Double getHeight() {
		return height;
	}

	public void setHeight(Double height) {
		this.height = height;
	}

	public Double getWeight() {
		return weight;
	}

	public void setWeight(Double weight) {
		this.weight = weight;
	}

	public PackingType getPackingType() {
		return packingType;
	}

	public void setPackingType(PackingType packingType) {
		this.packingType = packingType;
	}

	public Double getValue() {
		return value;
	}

	public void setValue(Double value) {
		this.value = value;
	}
    public String getOperation(){
        return BizUtil.getGeneralOperation(getId());
    }   	
}
